import request from '@/utils/request'

// 获取黑名单列表
export function getBlacklist(queryParams) {
  return request({
    url: '/Empment/blacklist/list',
    method: 'get',
    params: queryParams
  });
}


// 删除单个黑名单条目
export function deleteBlacklist(blackListId) {
  return request({
    url: `/Empment/blacklist/delete/${blackListId}`,
    method: 'delete'
  });
}


// 新增黑名单人员
export function addBlackList(data) {
  return request({
    url: `/Empment/blacklist/insert`,
    method: 'post',
    data: data
  });
}


  // 修改数据信息
  export function updateBlacklist(data) {
    return request({
      url: `/Empment/blacklist/update`,
      method: 'put',
      data: data
    });
}

